|
$webwork.htmlEncode($page.space.name) : Providing SLD to GetMap requests
This page last changed on Dec 18, 2007 by aaime.
There are 4 ways to send SLD to Geoserver:
When you specify the layers to be drawn through the LAYERS=... parameter, the GetMap request is meant to be in "library" mode. Library mode stands that the SLD document you provide acts as a libraty of styles from where to obtain the styling rules for the requested layers, taking precedence over the styles residing on the server. This way you can compose your GetMap request as usual and provide custom styling for some layers, relying on their defaults or other server side styles as usual for the rest. The other way of composing your map through custom SLD is known as "Literal mode". In this way, you do not provide a LAYERS= parameter, but specifies exactly which layers has to be drawn from the <NamedLayer> and <UserLayer> elements inside your StyledLayerDescriptor document. Finally, note that GeoServer will validate the SLD documents you provide agains the SLD 1.0 xml schema, both through the web admin interface as for user defined symbolization through one of the methods mentioned above. For more information on the internals of GetMap request composition consult the SLD 1.0 spec. |
| Document generated by Confluence on Jan 16, 2008 23:27 |